<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link href="${ctx!}/static/css/bootstrap.min.css" rel="stylesheet">
    <link href="${ctx!}/static/css/font-awesome.min.css" rel="stylesheet">
    <link href="${ctx!}/static/css/app.css" rel="stylesheet">
    <title>Document</title>
</head>

<body>
<div class="wrapper">
    <nav role="navigation" class="navbar navbar-default">
        <!-- START navbar header-->
        <div class="navbar-header">
            <a href="/" class="navbar-brand">
                <div class="brand-logo">
                    <img src="/static/image/logo.png" alt="App Logo" class="img-responsive">
                </div>
            </a>
        </div>
        <!-- END navbar header-->
        <!-- START Nav wrapper-->
        <div class="nav-wrapper">
            <ul class="nav navbar-nav">
                <li>
                    <!-- Button used to collapse the left sidebar. Only visible on tablet and desktops-->
                    <a href="/" class="hidden-xs active">
                        区块链数据
                    </a>
                </li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <!-- Search icon-->
                <li>
                    <a href="javascript:void(0);" data-toggle="navbar-search">
                        15510165330@163.com
                        <em class="fa fa-caret-down"></em>
                    </a>
                </li>
            </ul>

        </div>
        <!-- END Nav wrapper-->
    </nav>
    <div class="container-fluid main-content">
        <H3>区块链数据 <small>交易信息</small></H3>
        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-default">
                    <div class="panel-heading">存档数据
                    </div>
                    <div class="panel-body">
                        <h4>交易参数</h4>
                        <dl class="dl-horizontal">
                            <#assign contentType=transactionInfo.contentType/>
                            <dt>存档HASH</dt>
                            <dd>${transactionInfo.uuid}</dd>
                            <dt>存档类型</dt>
                            <dd>${(contentType=="RECORD")?string("存证","存证类型")}</dd>
                            <dt>存档生成时间</dt>
                            <dd>${(transactionInfo.time*1000)?number_to_date?string("yyyy-MM-dd HH:mm:ss")}</dd>
                        </dl>
                        <h4>存档原始数据</h4>
                        <dl class="dl-horizontal">
                            <#if contentType=="RECORD">
                                <#assign recordContent =transactionInfo.contentInfo.recordContent/>
                                <#list recordContent?keys as key>
                                    <dt>${key}</dt>
                                    <dd>${recordContent[key]}</dd>
                                </#list>
                            </#if>
                        </dl>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<!-- 全局js -->
<script src="${ctx!}/static/js/jquery.min.js"></script>
<script src="${ctx!}/static/js/bootstrap.min.js"></script>
</body>

</html>
